

<%@ page import="mileena.AppOwner" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'appOwner.label', default: 'AppOwner')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${appOwnerInstance}">
            <div class="errors">
                <g:renderErrors bean="${appOwnerInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appUserFirstName"><g:message code="appOwner.appUserFirstName.label" default="App User First Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appUserFirstName', 'errors')}">
                                    <g:textField name="appUserFirstName" maxlength="50" value="${appOwnerInstance?.appUserFirstName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appUserMiddleName"><g:message code="appOwner.appUserMiddleName.label" default="App User Middle Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appUserMiddleName', 'errors')}">
                                    <g:textField name="appUserMiddleName" maxlength="50" value="${appOwnerInstance?.appUserMiddleName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appUserLastName"><g:message code="appOwner.appUserLastName.label" default="App User Last Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appUserLastName', 'errors')}">
                                    <g:textField name="appUserLastName" maxlength="50" value="${appOwnerInstance?.appUserLastName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appUserMail"><g:message code="appOwner.appUserMail.label" default="App User Mail" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appUserMail', 'errors')}">
                                    <g:textField name="appUserMail" maxlength="150" value="${appOwnerInstance?.appUserMail}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appUserPassword"><g:message code="appOwner.appUserPassword.label" default="App User Password" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appUserPassword', 'errors')}">
                                    <g:textField name="appUserPassword" maxlength="40" value="${appOwnerInstance?.appUserPassword}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appUserDescription"><g:message code="appOwner.appUserDescription.label" default="App User Description" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appUserDescription', 'errors')}">
                                    <g:textArea name="appUserDescription" cols="40" rows="5" value="${appOwnerInstance?.appUserDescription}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appImage"><g:message code="appOwner.appImage.label" default="App Image" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appImage', 'errors')}">
                                    <g:textField name="appImage" value="${appOwnerInstance?.appImage}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appOwnerPosition"><g:message code="appOwner.appOwnerPosition.label" default="App Owner Position" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appOwnerPosition', 'errors')}">
                                    <g:textField name="appOwnerPosition" value="${appOwnerInstance?.appOwnerPosition}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appRole"><g:message code="appOwner.appRole.label" default="App Role" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appRole', 'errors')}">
                                    <g:select name="appRole.id" from="${mileena.AppRole.list()}" optionKey="id" value="${appOwnerInstance?.appRole?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="appUserSignUp"><g:message code="appOwner.appUserSignUp.label" default="App User Sign Up" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: appOwnerInstance, field: 'appUserSignUp', 'errors')}">
                                    <g:datePicker name="appUserSignUp" precision="day" value="${appOwnerInstance?.appUserSignUp}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
